// 封装列表页相关接口
import request from '@/utils/request.js'

// 获取景点数据
export const getSceneryDataService = (data) => {
	return request({
		url: '/scenery',
		method: 'GET',
		params: {
			...data
		}
	})
}

// 获取酒店数据
export const getHotelDataService = (data) => {
	return request({
		url: '/hotel',
		method: 'GET',
		params: {
			...data
		}
	})
}

// 获取餐厅数据
export const getRestaurantDataService = (data) => {
	return request({
		url: '/restaurant',
		method: 'GET',
		params: {
			...data
		}
	})
}

// 获取社区攻略数据
export const getCommunityPostDataService = (data) => {
	return request({
		url: '/post/community',
		method: 'GET',
		params: {
			...data
		}
	})
}

// 获取攻略数据
export const getPostDataService = (data) => {
	return request({
		url: '/post',
		method: 'GET',
		params: {
			...data
		}
	})
}